﻿using StockTrading.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockTrading.ViewModel
{
    public class LoginViewModel:NotificationBase
    {
        #region Fields
        private User _UserModel;
        private readonly ApplicationDbContext context;

        private UserPosition _CurUserPosition;

        public UserPosition CurUserPosition
        {
            get { return _CurUserPosition; }
            set
            {
                this._CurUserPosition = value;
                this.RaisePropertyChange("CurUserPosition");
            }
        }

        #endregion
        #region Ctor
        public LoginViewModel(ApplicationDbContext _context)
        {
            context = _context;
        }
        #endregion 


        public User UserModel
        {
            get { return _UserModel; }
            set
            {
                if (value == null) return;
                this._UserModel = value;
                this.RaisePropertyChange("UserModel");
            }
        }

    }
}
